package com.zhaoyh.service;

import com.zhaoyh.bean.IncomeRecord;
import com.zhaoyh.bean.Userincome;
import com.zhaoyh.mapper.UserincomeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 祥霸
 * @date 2019/2/22
 */
@Service
public class UserincomeService {

    @Autowired
    UserincomeMapper userincomeMapper;

    public List<Userincome> listUserincome(Integer offset, Integer limit, String uuid) {
        return userincomeMapper.selecttByAccount(offset,limit,uuid);
    }

    public int getCount(String uuid) {
        return userincomeMapper.countByUuid(uuid);
    }

}
